package com.selfstudy.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.selfstudy.common.annotation.Excel;
import com.selfstudy.common.core.domain.BaseEntity;

/**
 * 自习室对象 s_room
 * 
 * @author lgf
 * @date 2024-01-29
 */
public class SRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教室编号 */
    private Long roomId;

    private String roomName;

    /** 教学楼id */
    @Excel(name = "教学楼id")
    private String floorId;

    /** 教室图片 */
    @Excel(name = "教室图片")
    private String roomImg;

    /** 富文本 */
    @Excel(name = "富文本")
    private String richText;

    /** 排数 */
    @Excel(name = "排数")
    private Integer rowNum;

    /** 列数 */
    @Excel(name = "列数")
    private Integer columnNum;

    /** 座位json */
    @Excel(name = "座位json")
    private String coordinateJson;

    /** 预约开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 预约结束 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public Long getRoomId()
    {
        return roomId;
    }
    public void setFloorId(String floorId) 
    {
        this.floorId = floorId;
    }

    public String getFloorId() 
    {
        return floorId;
    }
    public void setRoomImg(String roomImg) 
    {
        this.roomImg = roomImg;
    }

    public String getRoomImg() 
    {
        return roomImg;
    }
    public void setRichText(String richText) 
    {
        this.richText = richText;
    }

    public String getRichText() 
    {
        return richText;
    }
    public void setRowNum(Integer rowNum) 
    {
        this.rowNum = rowNum;
    }

    public Integer getRowNum() 
    {
        return rowNum;
    }
    public void setColumnNum(Integer columnNum) 
    {
        this.columnNum = columnNum;
    }

    public Integer getColumnNum() 
    {
        return columnNum;
    }
    public void setCoordinateJson(String coordinateJson) 
    {
        this.coordinateJson = coordinateJson;
    }

    public String getCoordinateJson() 
    {
        return coordinateJson;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("roomName", getRoomName())
            .append("floorId", getFloorId())
            .append("roomImg", getRoomImg())
            .append("richText", getRichText())
            .append("rowNum", getRowNum())
            .append("columnNum", getColumnNum())
            .append("coordinateJson", getCoordinateJson())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
